{% extends "base_ittctalk.html" %}

{% block content %}

    <table>
        <tr>
            <th>PK</th>
            <th>Title</th>
            <th>Updated</th>
            <th>Actions</th>
        </tr>
        {% for talk in object_list %}
            <tr class="{% cycle 'row1' 'row2' as rowcolor %}">
                <td>{{ talk.pk }}</td>
                <td>{{ talk.name|escape }}</td>
                <td>{{ talk.updated_at }}</td>
                <td>{# <a href="/ittctalk/{{ talk.pk }}/"><img src="http://jrc.play-and-think.com/images/information.png" width="16" height="16" /></a> #}</td>
            </tr>
            <tr class="{{ rowcolor }}">
                <td colspan="4">
                {{ talk.text|safe }}
                </td>
            </tr>
            <tr class="{{ rowcolor }}">
                <td colspan="4">
                    <textarea rows="10" cols="80">
                        {{ talk.text }}
                    </textarea>
                </td>
            </tr>
        {% empty %}
            <tr>
                <td colspan="4">
                No ITTC talks...
                </td>
            </tr>
        {% endfor %}
        <tr>
            <td colspan="4">
                <input type="button" onclick="document.location.href='/ittctalk/create/'; return false;" class="default" value="Create" />
            </td>
        </tr>
    </table>

{% endblock %}
